It was found that atoms not only emit photons, they can absorb them also. Albert Einstein won the Nobel Prize for physics in 1908 for discovering that photon absorption can release electrons from atoms. This is called the photoelectric effect.
There was strong controversy for many years on deciding whether light consists of waves or particles. The evidence was strong for both cases and it was later shown that light is both particles and waves.